package com.landeb.shop.huo.httpRequest;

import com.landeb.shop.huo.bean.BeanFragShoppingCart;
import com.landeb.shop.huo.bean.BeanStatusInfo;

import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.GET;
import retrofit2.http.POST;
import rx.Observable;

/**
 * Created by blade on 2016/11/18.
 */

public interface FragShoppingCartRequest {

    @GET("Goods/cart_lists")
    Observable<BeanFragShoppingCart> getCartData();

    @FormUrlEncoded
    @POST("Goods/cart_update_check")
    Observable<BeanStatusInfo> updateChecked(@Field("checked") String checkedGoodsID, @Field("unchecked") String uncheckedGoodsID);

    @FormUrlEncoded
    @POST("Goods/cart_update_amount")
    Observable<BeanStatusInfo> updateAmount(@Field("cart_id") String cartID, @Field("amount") String amount);

    @FormUrlEncoded
    @POST("Goods/cart_del")
    Observable<BeanStatusInfo> GoodsDelete(@Field("cart_ids") String cartIDs);

}
